function figure_8_line(X1, Y1, Y2)
%CREATEFIGURE(X1, Y1, Y2)
%  X1:  vector of x data
%  Y1:  vector of y data
%  Y2:  vector of y data

%  Auto-generated by MATLAB on 25-Aug-2022 16:39:19

% Create figure
figure1 = figure;

% Create axes
axes1 = axes('Parent',figure1);
hold(axes1,'on');

% Activate the left side of the axes
yyaxis(axes1,'left');
% Create plot
plot(X1,Y1,'DisplayName','$\lambda_f$','LineWidth',2,'Color',[0 0 1]);

% Create ylabel
ylabel('$\frac{\lambda^{HET}}{\lambda^{HOM}}$','FontSize',16,...
    'Interpreter','latex');

% Set the remaining axes properties
set(axes1,'YColor',[0 0 0]);
% Activate the right side of the axes
yyaxis(axes1,'right');
% Create plot
plot(X1,Y2,'--','DisplayName','$d\ln MC_f^{-1}$','LineWidth',2,'Color',[1 0 0]);

% Create ylabel
ylabel('$\frac{\left(d\ln MC_f^{-1}\right)^{HET}}{\left(d\ln MC_f^{-1}\right)^{HOM}}$','FontSize',16,...
    'Interpreter','latex');

% Set the remaining axes properties
set(axes1,'YColor',[0 0 0]);
% Create xlabel
xlabel('Size Percentiles','FontSize',16,'Interpreter','latex');

box(axes1,'on');
% Set the remaining axes properties
set(axes1,'XTick',[1 2 3],'XTickLabel',{'0-90','90-99','99-100'});
% Create legend
legend1 = legend(axes1,'show','Location','north');
set(legend1,'Interpreter','latex','FontSize',16);

